﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class FAQService
    {
        #region getbyID
        public static FAQInfo getbyID(int faqID) {
            return FAQController.getbyID(faqID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return FAQController.ListFAQ();
        }
        #endregion

        #region insert
        public static bool insertFAQ(FAQInfo objFAQ) {
            return FAQController.insertFAQ(objFAQ);
        }
        #endregion

        #region update
        public static bool updateFAQ(FAQInfo objFAQ) {
            return FAQController.updateFAQ(objFAQ);
        }
        #endregion

        #region delete
        public static bool deleteFAQ(int faqID) {
            return FAQController.deleteFAQ(faqID);
        }
        #endregion
    }
}
